package com.itheima.dao;

import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 健康干预DAO
 */
public interface InterventionDao {

    //添加干预
    public void add(@Param("physicalExamId") Integer physicalExamId, @Param("foods") String foods, @Param("sports") String sports);

    //根据ID查询数量
    public long findCountById(Integer physicalExamId);

    //根据订单id查询体检结果id
    public Integer findIdByOrderId(@Param("orderId") Integer orderId);

    //根据id查询体检结果
    public Map findById(Integer physicalexamId);
}
